home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ASRegistry.a < prev    next >
Text File  |  1996-05-01  |  11KB  |  266 lines

  1. ;
  2. ;    File:        ASRegistry.a
  3. ;
  4. ;    Contains:    AppleScript Registry constants.
  5. ;
  6. ;    Version:    Technology:    AppleScript 1.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__ASREGISTRY__') = 'UNDEFINED' THEN
  19. __ASREGISTRY__ SET 1
  20.  
  21.     IF &TYPE('__APPLEEVENTS__') = 'UNDEFINED' THEN
  22.     include 'AppleEvents.a'
  23.     ENDIF
  24.     IF &TYPE('__AEREGISTRY__') = 'UNDEFINED' THEN
  25.     include 'AERegistry.a'
  26.     ENDIF
  27.     IF &TYPE('__AEOBJECTS__') = 'UNDEFINED' THEN
  28.     include 'AEObjects.a'
  29.     ENDIF
  30.     IF FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE THEN
  31.  
  32. keyAETarget                        EQU        'targ'                ;  0x74617267  
  33. keySubjectAttr                    EQU        'subj'                ;  0x7375626a  
  34.                                                             ; Magic 'returning' parameter: 
  35. keyASReturning                    EQU        'Krtn'                ;  0x4b72746e  
  36.                                                             ; AppleScript Specific Codes: 
  37. kASAppleScriptSuite                EQU        'ascr'                ;  0x61736372  
  38. kASTypeNamesSuite                EQU        'tpnm'                ;  0x74706e6d  
  39.                                                             ; dynamic terminologies 
  40. typeAETE                        EQU        'aete'                ;  0x61657465  
  41. typeAEUT                        EQU        'aeut'                ;  0x61657574  
  42. kGetAETE                        EQU        'gdte'                ;  0x67647465  
  43. kGetAEUT                        EQU        'gdut'                ;  0x67647574  
  44. kUpdateAEUT                        EQU        'udut'                ;  0x75647574  
  45. kUpdateAETE                        EQU        'udte'                ;  0x75647465  
  46. kCleanUpAEUT                    EQU        'cdut'                ;  0x63647574  
  47. kASComment                        EQU        'cmnt'                ;  0x636d6e74  
  48. kASLaunchEvent                    EQU        'noop'                ;  0x6e6f6f70  
  49. keyScszResource                    EQU        'scsz'                ;  0x7363737A  
  50. typeScszResource                EQU        'scsz'                ;  0x7363737A  
  51.                                                             ; subroutine calls 
  52. kASSubroutineEvent                EQU        'psbr'                ;  0x70736272  
  53. keyASSubroutineName                EQU        'snam'                ;  0x736e616d  
  54. ;  Operator Events: 
  55.  
  56.                                                             ; Binary: 
  57. kASAdd                            EQU        '+   '                ;  0x2b202020  
  58. kASSubtract                        EQU        '-   '                ;  0x2d202020  
  59. kASMultiply                        EQU        '*   '                ;  0x2a202020  
  60. kASDivide                        EQU        '/   '                ;  0x2f202020  
  61. kASQuotient                        EQU        'div '                ;  0x64697620  
  62. kASRemainder                    EQU        'mod '                ;  0x6d6f6420  
  63. kASPower                        EQU        '^   '                ;  0x5e202020  
  64. kASEqual                        EQU        '=   '
  65. kASNotEqual                        EQU        '!=   '                ;  0xad202020  
  66. kASGreaterThan                    EQU        '>   '
  67. kASGreaterThanOrEqual            EQU        '>=  '
  68. kASLessThan                        EQU        '<   '
  69. kASLessThanOrEqual                EQU        '<=  '
  70. kASComesBefore                    EQU        'cbfr'                ;  0x63626672  
  71. kASComesAfter                    EQU        'cafr'                ;  0x63616672  
  72. kASConcatenate                    EQU        'ccat'                ;  0x63636174  
  73. kASStartsWith                    EQU        'bgwt'
  74. kASEndsWith                        EQU        'ends'
  75. kASContains                        EQU        'cont'
  76.  
  77. kASAnd                            EQU        'AND '
  78. kASOr                            EQU        'OR  '                ; Unary: 
  79. kASNot                            EQU        'NOT '
  80. kASNegate                        EQU        'neg '                ;  0x6e656720  
  81. keyASArg                        EQU        'arg '                ;  0x61726720  
  82.  
  83.                                                             ; event code for the 'error' statement 
  84. kASErrorEventCode                EQU        'err '                ;  0x65727220  
  85. kOSAErrorArgs                    EQU        'erra'                ;  0x65727261  
  86.                                                             ; Properties: 
  87. pLength                            EQU        'leng'                ;  0x6c656e67  
  88. pReverse                        EQU        'rvse'                ;  0x72767365  
  89. pRest                            EQU        'rest'                ;  0x72657374  
  90. pInherits                        EQU        'c@#^'                ;  0x6340235e  
  91.                                                             ; User-Defined Record Fields: 
  92. keyASUserRecordFields            EQU        'usrf'                ;  0x75737266  
  93. typeUserRecordFields            EQU        'list'
  94. ;  Prepositions: 
  95.  
  96. keyASPrepositionAt                EQU        'at  '                ;  0x61742020  
  97. keyASPrepositionIn                EQU        'in  '                ;  0x696e2020  
  98. keyASPrepositionFrom            EQU        'from'                ;  0x66726f6d  
  99. keyASPrepositionFor                EQU        'for '                ;  0x666f7220  
  100. keyASPrepositionTo                EQU        'to  '                ;  0x746f2020  
  101. keyASPrepositionThru            EQU        'thru'                ;  0x74687275  
  102. keyASPrepositionThrough            EQU        'thgh'                ;  0x74686768  
  103. keyASPrepositionBy                EQU        'by  '                ;  0x62792020  
  104. keyASPrepositionOn                EQU        'on  '                ;  0x6f6e2020  
  105. keyASPrepositionInto            EQU        'into'                ;  0x696e746f  
  106. keyASPrepositionOnto            EQU        'onto'                ;  0x6f6e746f  
  107. keyASPrepositionBetween            EQU        'btwn'                ;  0x6274776e  
  108. keyASPrepositionAgainst            EQU        'agst'                ;  0x61677374  
  109. keyASPrepositionOutOf            EQU        'outo'                ;  0x6f75746f  
  110. keyASPrepositionInsteadOf        EQU        'isto'                ;  0x6973746f  
  111. keyASPrepositionAsideFrom        EQU        'asdf'                ;  0x61736466  
  112. keyASPrepositionAround            EQU        'arnd'                ;  0x61726e64  
  113. keyASPrepositionBeside            EQU        'bsid'                ;  0x62736964  
  114. keyASPrepositionBeneath            EQU        'bnth'                ;  0x626e7468  
  115. keyASPrepositionUnder            EQU        'undr'                ;  0x756e6472  
  116.  
  117. keyASPrepositionOver            EQU        'over'                ;  0x6f766572  
  118. keyASPrepositionAbove            EQU        'abve'                ;  0x61627665  
  119. keyASPrepositionBelow            EQU        'belw'                ;  0x62656c77  
  120. keyASPrepositionApartFrom        EQU        'aprt'                ;  0x61707274  
  121. keyASPrepositionGiven            EQU        'givn'                ;  0x6769766e  
  122. keyASPrepositionWith            EQU        'with'                ;  0x77697468  
  123. keyASPrepositionWithout            EQU        'wout'                ;  0x776f7574  
  124. keyASPrepositionAbout            EQU        'abou'                ;  0x61626f75  
  125. keyASPrepositionSince            EQU        'snce'                ;  0x736e6365  
  126. keyASPrepositionUntil            EQU        'till'                ;  0x74696c6c  
  127.  
  128.                                                             ; Terminology & Dialect things: 
  129. kDialectBundleResType            EQU        'Dbdl'                ;  0x4462646c  
  130.                                                             ; AppleScript Classes and Enums: 
  131. cConstant                        EQU        'enum'
  132. cClassIdentifier                EQU        'pcls'
  133. cObjectBeingExamined            EQU        'exmn'
  134. cList                            EQU        'list'
  135. cSmallReal                        EQU        'sing'
  136. cReal                            EQU        'doub'
  137. cRecord                            EQU        'reco'
  138. cReference                        EQU        'obj '
  139. cUndefined                        EQU        'undf'                ;  0x756e6466  
  140. cSymbol                            EQU        'symb'                ;  0x73796d62  
  141. cLinkedList                        EQU        'llst'                ;  0x6c6c7374  
  142. cVector                            EQU        'vect'                ;  0x76656374  
  143. cEventIdentifier                EQU        'evnt'                ;  0x65766e74  
  144. cKeyIdentifier                    EQU        'kyid'                ;  0x6b796964  
  145. cUserIdentifier                    EQU        'uid '                ;  0x75696420  
  146. cPreposition                    EQU        'prep'                ;  0x70726570  
  147. cKeyForm                        EQU        'kfrm'
  148. cScript                            EQU        'scpt'                ;  0x73637074  
  149. cHandler                        EQU        'hand'                ;  0x68616e64  
  150. cProcedure                        EQU        'proc'                ;  0x70726f63  
  151.  
  152. cClosure                        EQU        'clsr'                ;  0x636c7372  
  153. cRawData                        EQU        'rdat'                ;  0x72646174  
  154. cString                            EQU        'TEXT'
  155. cStringClass                    EQU        'TEXT'
  156. cNumber                            EQU        'nmbr'                ;  0x6e6d6272  
  157. cListOrRecord                    EQU        'lr  '                ;  0x6c722020  
  158. cListOrString                    EQU        'ls  '                ;  0x6c732020  
  159. cListRecordOrString                EQU        'lrs '                ;  0x6c727320  
  160. cNumberOrDateTime                EQU        'nd  '                ;  0x6e642020  
  161. cNumberDateTimeOrString            EQU        'nds '                ;  0x6e647320  
  162. cSeconds                        EQU        'scnd'                ;  0x73636e64  
  163. enumBooleanValues                EQU        'boov'                ;  0x626f6f76  
  164. kAETrue                            EQU        'true'
  165. kAEFalse                        EQU        'fals'
  166. enumMiscValues                    EQU        'misc'                ;  0x6d697363  
  167. kASCurrentApplication            EQU        'cura'                ;  0x63757261  
  168.                                                             ; User-defined property ospecs: 
  169. formUserPropertyID                EQU        'usrp'                ;  0x75737270  
  170.  
  171.                                                             ; Global properties: 
  172. pASIt                            EQU        'it  '                ;  0x69742020  
  173. pASMe                            EQU        'me  '                ;  0x6d652020  
  174. pASResult                        EQU        'rslt'                ;  0x72736c74  
  175. pASSpace                        EQU        'spac'                ;  0x73706163  
  176. pASReturn                        EQU        'ret '                ;  0x72657420  
  177. pASTab                            EQU        'tab '                ;  0x74616220  
  178. pASPi                            EQU        'pi  '                ;  0x70692020  
  179. pASParent                        EQU        'pare'                ;  0x70617265  
  180. kASInitializeEventCode            EQU        'init'                ;  0x696e6974  
  181. pASPrintLength                    EQU        'prln'                ;  0x70726c6e  
  182. pASPrintDepth                    EQU        'prdp'                ;  0x70726470  
  183. pASTopLevelScript                EQU        'ascr'                ;  0x61736372  
  184.  
  185.                                                             ; Considerations 
  186. kAECase                            EQU        'case'                ;  0x63617365  
  187. kAEDiacritic                    EQU        'diac'                ;  0x64696163  
  188. kAEWhiteSpace                    EQU        'whit'                ;  0x77686974  
  189. kAEHyphens                        EQU        'hyph'                ;  0x68797068  
  190. kAEExpansion                    EQU        'expa'                ;  0x65787061  
  191. kAEPunctuation                    EQU        'punc'                ;  0x70756e63  
  192. kAEZenkakuHankaku                EQU        'zkhk'                ;  0x7a6b686b  
  193. kAESmallKana                    EQU        'skna'                ;  0x736b6e61  
  194. kAEKataHiragana                    EQU        'hika'                ;  0x68696b61  
  195.                                                             ; AppleScript considerations: 
  196. kASConsiderReplies                EQU        'rmte'                ;  0x726d7465  
  197. enumConsiderations                EQU        'cons'                ;  0x636f6e73  
  198.  
  199. cCoercion                        EQU        'coec'                ;  0x636f6563  
  200. cCoerceUpperCase                EQU        'txup'                ;  0x74787570  
  201. cCoerceLowerCase                EQU        'txlo'                ;  0x74786c6f  
  202. cCoerceRemoveDiacriticals        EQU        'txdc'                ;  0x74786463  
  203. cCoerceRemovePunctuation        EQU        'txpc'                ;  0x74787063  
  204. cCoerceRemoveHyphens            EQU        'txhy'                ;  0x74786879  
  205. cCoerceOneByteToTwoByte            EQU        'txex'                ;  0x74786578  
  206. cCoerceRemoveWhiteSpace            EQU        'txws'                ;  0x74787773  
  207. cCoerceSmallKana                EQU        'txsk'                ;  0x7478736b  
  208. cCoerceZenkakuhankaku            EQU        'txze'                ;  0x74787a65  
  209. cCoerceKataHiragana                EQU        'txkh'                ;  0x74786b68  
  210.                                                             ; Lorax things: 
  211. cZone                            EQU        'zone'                ;  0x7a6f6e65  
  212. cMachine                        EQU        'mach'                ;  0x6d616368  
  213. cAddress                        EQU        'addr'                ;  0x61646472  
  214. cRunningAddress                    EQU        'radd'                ;  0x72616464  
  215. cStorage                        EQU        'stor'                ;  0x73746f72  
  216.  
  217.                                                             ; DateTime things: 
  218. pASWeekday                        EQU        'wkdy'                ;  0x776b6479  
  219. pASMonth                        EQU        'mnth'                ;  0x6d6e7468  
  220. pASDay                            EQU        'day '                ;  0x64617920  
  221. pASYear                            EQU        'year'                ;  0x79656172  
  222. pASTime                            EQU        'time'                ;  0x74696d65  
  223. pASDateString                    EQU        'dstr'                ;  0x64737472  
  224. pASTimeString                    EQU        'tstr'                ;  0x74737472  
  225.                                                             ; Months 
  226. cMonth                            EQU        'mnth'
  227. cJanuary                        EQU        'jan '                ;  0x6a616e20  
  228. cFebruary                        EQU        'feb '                ;  0x66656220  
  229. cMarch                            EQU        'mar '                ;  0x6d617220  
  230. cApril                            EQU        'apr '                ;  0x61707220  
  231. cMay                            EQU        'may '                ;  0x6d617920  
  232. cJune                            EQU        'jun '                ;  0x6a756e20  
  233. cJuly                            EQU        'jul '                ;  0x6a756c20  
  234. cAugust                            EQU        'aug '                ;  0x61756720  
  235. cSeptember                        EQU        'sep '                ;  0x73657020  
  236. cOctober                        EQU        'oct '                ;  0x6f637420  
  237. cNovember                        EQU        'nov '                ;  0x6e6f7620  
  238. cDecember                        EQU        'dec '                ;  0x64656320  
  239.  
  240.                                                             ; Weekdays 
  241. cWeekday                        EQU        'wkdy'
  242. cSunday                            EQU        'sun '                ;  0x73756e20  
  243. cMonday                            EQU        'mon '                ;  0x6d6f6e20  
  244. cTuesday                        EQU        'tue '                ;  0x74756520  
  245. cWednesday                        EQU        'wed '                ;  0x77656420  
  246. cThursday                        EQU        'thu '                ;  0x74687520  
  247. cFriday                            EQU        'fri '                ;  0x66726920  
  248. cSaturday                        EQU        'sat '                ;  0x73617420  
  249.                                                             ; AS 1.1 Globals: 
  250. pASQuote                        EQU        'quot'                ;  0x71756f74  
  251. pASSeconds                        EQU        'secs'                ;  0x73656373  
  252. pASMinutes                        EQU        'min '                ;  0x6d696e20  
  253. pASHours                        EQU        'hour'                ;  0x686f7572  
  254. pASDays                            EQU        'days'                ;  0x64617973  
  255. pASWeeks                        EQU        'week'                ;  0x7765656b  
  256.                                                             ; Writing Code things: 
  257. cWritingCodeInfo                EQU        'citl'                ;  0x6369746c  
  258. pScriptCode                        EQU        'pscd'                ;  0x70736364  
  259. pLangCode                        EQU        'plcd'                ;  0x706c6364  
  260.                                                             ; Magic Tell and End Tell events for logging: 
  261. kASMagicTellEvent                EQU        'tell'                ;  0x74656c6c  
  262. kASMagicEndTellEvent            EQU        'tend'                ;  0x74656e64  
  263.     ENDIF
  264.     ENDIF ; __ASREGISTRY__ 
  265.  
  266.